package com.imooc.joe_springmvc1.prepost;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by joe on 16-8-10.
 */
public class MainTest {

    public static void main(String[] args){
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(PrePostConfig.class);
        BeanWayService service = context.getBean(BeanWayService.class);

        JSR250WayService service1 = context.getBean(JSR250WayService.class);
        context.close();
    }
}
